package mediator;

public class Woman extends Person {
    public Woman(String name, int level, Mediator mediator) {
        super(name, level, mediator);
    }

    @Override
    public void getPartner(Person person) {
        if (this.checkClass(person)) {
            System.out.println("汗，我不是同性恋！");
        } else {
            this.getMediator().setWoman(this);
            this.getMediator().getPartner(person);
        }
    }
}
